package chapter19.h19_4;

import chapter19.h19_3.Context;
import chapter19.h19_3.DayState;
import chapter19.h19_3.State;

public class UrgentState implements State {
    private static UrgentState singleton = new UrgentState();
    private UrgentState(){

    }
    public static UrgentState getInstance(){
        return singleton;
    }

    public void doClock(Context context, int hour){
        //什么都不做
    }

    public void doUse(Context context){
        context.callSecurityCenter("紧急：使用金库");
    }
    //....下面几个函数类似
}
